<template>
	<view>
		<image style="width: 100%;"
			:src="base+content.imgUrl" mode="">
		</image>
		<uni-group title="简介">
			<view class="">
				{{content.introduce}}
			</view>
		</uni-group>
		<uni-group title="人才政策文件列表">
			<uni-list>
				<uni-list-item link @click="dian(item.id)" v-for="(item,index) in list" :title="item.title" :note="item.createTime"></uni-list-item>
			</uni-list>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				content:'',
				list:[]
			}
		},
		onLoad(options) {
			this.getlun(options.id)
			this.getlun2(options.id)
		},
		methods: {
			dian(id){
				uni.navigateTo({
					url:'zhengce?id='+id
				})
			},
			getlun(id){
				this.$get(this.base+'/prod-api/api/youth-inn/talent-policy-area/'+id).then((res)=>{
					this.content = res.data
				})
			},
			getlun2(id){
				this.$get(this.base+'/prod-api/api/youth-inn/talent-policy/list',{
					areaId:id
				}).then((res)=>{
					this.list = res.data
				})
			},
			
		}
	}
</script>

<style>

</style>
